﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
//TODO Validations
namespace CMS2.Models
{
    public class Student
    {
        #region properties

        public int Id { get; set; }
        
        public int RollNo { get; set; }
        [Required(ErrorMessage="Username is required"), Display(Name="User Name")]
        public String Username { get; set; }
        [Required(ErrorMessage = "Name is required")]
        public String Name { get; set; }
        [Required(ErrorMessage = "Father Name is required"), Display(Name = "Father Name")]
        public String FatherName { get; set; }
        public String Gender { get; set; }
        [Display(Name="Date of Birth")]
        public DateTime DateOfBirth { get; set; }
        public DateTime AdmissionDate { get; set; }

        public String Degree { get; set; }

        public String MobileNo { get; set; }
        public String LandLineNo { get; set; }
        [Required(ErrorMessage="date of birth is required")]
        public String Address { get; set; }
        public virtual ICollection<Subject> Subjects { get; set; }
        public virtual Class currentClass { get; set; }
        public virtual IEnumerable<Attendance> Attendance { get; set; }

        #endregion
    }
}